<?php
/**
 * @version		$Id: index.php 20196 2011-01-09 02:40:25Z ian $
 * @package		Joomla.Site
 * @copyright	Copyright (C) 2005 - 2011 Open Source Matters, Inc. All rights reserved.
 * @license		GNU General Public License version 2 or later; see LICENSE.txt
 */

defined('_JEXEC') or die;

/* The following line loads the MooTools JavaScript Library */
JHTML::_('behavior.framework', true);

/* The following line gets the application object for things like displaying the site name */
$app = JFactory::getApplication();
?>
<?php echo '<?'; ?>xml version="1.0" encoding="<?php echo $this->_charset ?>"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<?php
$pageoption = JRequest::getVar('option', '');
$pageview = JRequest::getVar('view', '');
$pageitemid = JRequest::getVar('Itemid', '');
$pageid = JRequest::getVar('id', '');
$pagetask = JRequest::getVar('task', '');
$page = JRequest::getVar('page', '');
$menu = & JSite::getMenu();
$document =& JFactory::getDocument();
$title = $document->getTitle();
$layout = JRequest::getVar('layout', '');

$this->setGenerator('');
$user =& JFactory::getUser();
if ($user->get('guest') == 1) {
	$headerstuff = $this->getHeadData();
	$headerstuff['scripts'] = array();
	$headerstuff['links'] = array();
	$this->setHeadData($headerstuff); 
}
$app = JFactory::getApplication();
$this->setTitle( $this->getTitle() . ' | ' . $app->getCfg( 'sitename' ) );
?>
<head>
<jdoc:include type="head" />
<link href="<?php echo $this->baseurl ?>/templates/xescort/css/style.css" rel="stylesheet" type="text/css" />
</head>
<script type="text/javascript" src="<?php echo $this->baseurl ?>/templates/xescort/js/jquery-1.4.4.min.js"></script>
<script src="<?php echo $this->baseurl ?>/templates/xescort/js/jquery.form.js" type="text/javascript"></script>
<script src="<?php echo $this->baseurl ?>/templates/xescort/js/jquery.validate.js" type="text/javascript"></script>
<script src="<?php echo $this->baseurl ?>/templates/xescort/js/jquery.updnWatermark.js" type="text/javascript"></script>
<script src="<?php echo $this->baseurl ?>/templates/xescort/js/menu.js" type="text/javascript"></script>
<script src="<?php echo $this->baseurl ?>/templates/xescort/js/image.slider.js" type="text/javascript"></script>
<script src="<?php echo $this->baseurl ?>/templates/xescort/js/jquery.fancybox-1.3.4.pack.js" type="text/javascript"></script>
<script type="text/javascript" src="<?php echo $this->baseurl ?>/templates/xescort/js/list_images.js"></script>
<script language="javascript">
	jQuery(document).ready(function(){
		jQuery("#mycarousel").jCarouselLite({
			btnNext: ".next",
			btnPrev: ".prev",
			visible : 4,
			scroll: 1,
			speed : 400
		});
		jQuery.updnWatermark.attachAll({ cssClass: "myWatermark" });
		click_sendlogin=function(){
			document.getElementById('sendlogin').click();
		};
		close_popup=function(){
			var fel=$('#f_focus').html();
			$('#backoverlay').hide();
			$('#show_popup').hide();
			$('#' + fel ).focus();
		};
	});	
</script>
<style>
.nav_top li#current{ margin:0; padding:0; list-style-type:none; background:#2f0035 url(<?php echo $this->baseurl ?>/templates/xescort/images/line_right_nav.png) no-repeat left; display:block;float:left;}
img{border: none;}
.bg_alert{ width:270px; height:115px; background:url(<?php echo $this->baseurl ?>/templates/xescort/images/bg_alert.png) no-repeat top left; margin:0px auto; padding:15px 0px 0px 83px; color:#000;}
.m35l{ margin-left:35px;}
.myWatermark{
	font-size: 11px;
	height: 24px;
	line-height: 24px;
	margin-left: 2px;
}
</style>
<body>
<!--Popup-->
<div class="bg_alert" id="show_popup" style="display:none; position: fixed; top: 35%; left: 50%; z-index:10001; margin-left:-140px;"> <span id="f_focus" style="display:none;"></span>
  <div style="margin:0; padding-top:10px; min-height:60px;" id="alert"></div>
  <div style="padding-left: 40px;"><a href="javascript:void(0);" onclick="close_popup();"><img src="<?php echo $this->baseurl ?>/templates/xescort/images/bt_luk1.png" alt="" /></a></div>
</div>
<!--End Popup-->
<!--Need-->
<div style="display: none;position: fixed; top: 0;left: 0;width: 100%;height: 100%;background-color: #000000;z-index:10000;-moz-opacity: 0.8;opacity:.80;filter: alpha(opacity=80);" id="backoverlay"></div>
<!--End-->
<div id="page_margins">
  <div id="page">
    <div id="header">
      <div class="w374 float_left"><a href="/"><img src="<?php echo $this->baseurl ?>/templates/xescort/images/logo.png"/></a></div>
      <?php
	  	$user 	=& JFactory::getUser();
		if ( $user->get('guest')) {
	  ?>
      <div class="w344 p22t float_right">
        <form action="" method="post" name="com-login" id="com-form-login">
          <p class="box_txt_login">
            <input type="text" value="" name="username" id="username" class="text" title="Brugernavn"/>
          </p>
          <p class="box_txt_login">
            <input type="password" value="" id="passwd" name="passwd" class="text" title="Adgangskode"/>
          </p>
          <a href="javascript:void(0);" class="submit" onclick="click_sendlogin();"><img src="<?php echo $this->baseurl ?>/templates/xescort/images/login.png" /></a>
          <p class="cb"></p>
          <div class="bg_husk">
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="27%"><input type="checkbox" id="remember" name="remember"/>
                  <span style=" position:relative; top:-2px; padding-left:3px;">Husk mig</span></td>
                <td width="38%"><a href="index.php?option=com_user&view=remind">Glemt  Adgangskode?</a></td>
                <td width="35%"><a href="index.php?option=com_user&view=register">OPRET BRUGER!</a></td>
              </tr>
            </table>
          </div>
          <input type="submit" name="sendlogin" id="sendlogin" value="Send" style="display: none;" />
          <input type="hidden" name="option" value="com_user" />
          <input type="hidden" name="task" value="login" />
          <input type="hidden" name="return" value="<?php echo $this->return; ?>" />
          <?php echo JHTML::_( 'form.token' ); ?>
        </form>
      </div>
      <?php
	  	}else{
		?>
      <div class=" w296 p30t float_right">
        <p style="color:#FFF;" class=" p12r float_left p5t"> Hej, <?php echo $user->get('name') ?> </p>
        <p class="bg_name_pc float_right"> GÅ til User-cp </p>
        <p class="cb"></p>
      </div>
      <?php
		 }
		?>
      <p class="cb"></p>
    </div>
    <div class="nav_top"> {module Main Menu Images} </div>
    <div id="main" class="p10t p10b">
      <div id="col1" class="w244">
        <div class="box_map"></div>
        <div class="p10t"><a href="index.php?option=com_user&view=register"><img src="<?php echo $this->baseurl ?>/templates/xescort/images/banner_gratis.png"/></a></div>
        <div class="p10t"> {module Aktuelt}
          {module nyesteartikler}
          <div class="tt1_bottom"></div>
        </div>
        <div class="p10t"> <a href="forum.html"><img src="<?php echo $this->baseurl ?>/templates/xescort/images/banner_gatilforum.png"/></a></div>
        <div class="p10t">
          <div class="tt1">
            <p class="text_tt1">Nyhedsbrev</p>
          </div>
          <div class="box_aktuelt">
            <p class="p5b">Jeg vil til-/afmelde mig <span class="style2">XESCORT</span> nyhedsbrev:</p>
            <p class="bg_txt_nyheder">
              <input name="" type="text" value="Indtast Din Email Adresse..." />
            </p>
            <input name="" type="image" src="<?php echo $this->baseurl ?>/templates/xescort/images/bt_tilmeld.png" />
            <input name="" type="image" src="<?php echo $this->baseurl ?>/templates/xescort/images/bt_afmeld.png" />
          </div>
          <div class="tt1_bottom"></div>
        </div>
        <div class="bg_icon_fb">
          <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td width="26%"><a href="http://www.facebook.com/" target="_blank"><img src="<?php echo $this->baseurl ?>/templates/xescort/images/icon_facebook.png"  /></a></td>
              <td width="26%"><a href="#"><img src="<?php echo $this->baseurl ?>/templates/xescort/images/icon_rss.png" /></a></td>
              <td width="48%"><a href="#"><img src="<?php echo $this->baseurl ?>/templates/xescort/images/icon_twiter.png"/></a></td>
            </tr>
          </table>
        </div>
      </div>
      <div id="col2" class="w698">
        <!-- begin news slide -->
        <div class="box_fla">
          <div class="box_fla_right">
            <p> <a href="#"> <b>Lorem ipsum dolor sit amet</b><br />
              Consectetur adipiscing elit. Nulla nec sem odio. Mauris felis felis...</a></p>
            <p> <a class="current" href="#"> <b>Lorem ipsum dolor sit amet</b><br />
              Consectetur adipiscing elit. Nulla nec sem odio. Mauris felis felis...</a></p>
            <p> <a href="#"> <b>Lorem ipsum dolor sit amet</b><br />
              Consectetur adipiscing elit. Nulla nec sem odio. Mauris felis felis...</a></p>
            <p> <a href="#"> <b>Lorem ipsum dolor sit amet</b><br />
              Consectetur adipiscing elit. Nulla nec sem odio. Mauris felis felis...</a></p>
          </div>
          <div><img src="<?php echo $this->baseurl ?>/templates/xescort/images/img_fla_banner.png"/></div>
        </div>
        <!-- begin news slide -->
        <!-- begin search -->
        <div class="box_search m10t">
          <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td height="22">KØN:</td>
              <td>SERVICE:</td>
              <td>OMRÅDE:</td>
              <td>SPECIALITETER:</td>
              <td>FRITEKST: </td>
              <td>&nbsp;</td>
            </tr>
            <tr>
              <td><p class="bg_txt_search">
                  <select name="">
                    <option>Vælg </option>
                  </select>
                </p></td>
              <td><p class="bg_txt_search">
                  <select name="">
                    <option>Vælg </option>
                  </select>
                </p></td>
              <td><p class="bg_txt_search">
                  <select name="">
                    <option>Vælg </option>
                  </select>
                </p></td>
              <td><p class="bg_txt_search">
                  <select name="">
                    <option>Vælg </option>
                  </select>
                </p></td>
              <td><p class="bg_txt_search">
                  <select name="">
                    <option>Vælg </option>
                  </select>
                </p></td>
              <td><input type="image" name="imageField" id="imageField" src="<?php echo $this->baseurl ?>/templates/xescort/images/bt_search.png" /></td>
            </tr>
          </table>
        </div>
        <!-- end search -->
        <!-- begin component -->
        <jdoc:include type="component" />
        <!-- end component -->
      </div>
      <br class="cb" />
    </div>
  </div>
  <div id="footer">
    <div id="footer_content"> <span class="float_left">Copyright © 2010<span class="style2"> XEscort.DK.</span> All rights reserved.</span> <span class="float_right">Design by <a href="http://www.mywebcreations.dk" target="_blank">My Web Creations</a></span> </div>
  </div>
  <div class="box_livesuppor_right"><a href="#"><img src="<?php echo $this->baseurl ?>/templates/xescort/images/bt_livesupport.png" width="35" height="157" /></a></div>
</div>
<script>
jQuery("#com-form-login").validate({		
	errorPlacement: function(error, element) {	
		
	},
	invalidHandler: function(form, validator) {
		
	  var errors = validator.numberOfInvalids();
	  if (errors) {			  					
		$('#alert').html(validator['errorList'][0]['message']);
		$('#backoverlay').show();
		$('#show_popup').show();
		$('#f_focus').html(validator['errorList'][0]['element'].name);
		validator['errorList'][0]['element'].focus();
		
	  } else {
		
	  }
	},
	rules: {
		username: "required",
		passwd: "required"
	},
	messages: {
		username: "Username skal udfyldes!",
		passwd : "Password skal udfyldes"
	}
});
</script>
</body>
</html>
